import java.util.Arrays;

public class Testmethod {

	public static void bubbleSort(int[] source, int upLimit) {
		int t;
		for (int i = 0; i < source.length - 1; i++) {
			for (int j = i; j < source.length - 1 - i; j++) {
				if (source[i] > source[i + 1]) {
					t = source[i];
					source[i] = source[i + 1];
					source[i + 1] = t;
				}
			}
		}
	}

	public static void arraySort(int a[]) {
		Arrays.sort(a);
	}

	public static int[] getRandomArray(int amount, int range) {
		int[] a = new int[amount];
		for (int i = 0; i < amount; i++) {
			a[i] = (int) (Math.random() * range);
		}
		return a;
	}
}
